﻿using System.Web.UI;
using Ue.Infrastructure.RepositoryFramework;
using Ue.Infrastructure.Web.UI;
using Ue.Qcdz.Domain.TheSiteConfig;

namespace Ue.Qcdz.UI.Controls
{
    public class SiteConfigView : SkinnedControl
    {
        private string skinFileName = "~/Themes/zh-cn/Skins/TheSiteConfig/TheSiteConfig.ascx";
        private ISiteConfigRepository repository;
        public SiteConfig Config { get; set; }
        #region Overrides of SkinnedControl
        public SiteConfigView()
        {
            repository = RepositoryFactory.GetRepository<ISiteConfigRepository, SiteConfig>();
            Config = repository.FindBy();
        }

        protected override string GetSkinFileName()
        {
            return skinFileName;
        }

        protected override void InitializeSkin(Control skin)
        {
            
        }

        #endregion
    }
}
